package com.hrc.rpc.protocol;


import com.hrc.rpc.common.constants.ProtocolConstants;
import lombok.Data;

import java.io.Serializable;

@Data
public class MsgHeader implements Serializable {

    private short magic = ProtocolConstants.MAGIC; // 魔数
    private byte version = ProtocolConstants.VERSION; // 协议版本号
    private byte msgType; // 数据类型
    private byte status; // 状态
    private long requestId; // 请求 ID
    private int serializationLen;
    private byte[] serializations;
    private int msgLen; // 数据长度
}
